Migrate from Java 17 to Java 22 (Phases 1-5)#83
Open
devin-ai-integration[bot] wants to merge 2 commits intoDevOpsfrom
Open
Migrate from Java 17 to Java 22 (Phases 1-5)#83devin-ai-integration[bot] wants to merge 2 commits intoDevOpsfrom
devin-ai-integration[bot] wants to merge 2 commits intoDevOpsfrom
Conversation
Phase 1-5 Migration Changes: - Update pom.xml java.version from 17 to 22 - Update maven-compiler-plugin source/target from 1.8 to 22 - Update Dockerfile build stage to maven:3.9-eclipse-temurin-22-alpine - Update Dockerfile runtime stage to eclipse-temurin:22-jre-alpine - Update README.md Jenkins installation to use openjdk-22-jre - Add JAVA22_MIGRATION_NOTES.md with deployment considerations Compatibility verified: - Spring Boot 3.3.3 supports Java 17-22 - MySQL Connector 8.0.33 compatible with Java 22 - Jenkinsfile and GitOps/Jenkinsfile reviewed and compatible Co-Authored-By: Satwik Bebortha <satwik.bebortha@cognition.ai>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
- Fix maven-compiler-plugin indentation to match rest of pom.xml - Update README.md to use openjdk-21-jre (openjdk-22-jre not available in Ubuntu repos) - Add note about Eclipse Temurin/Adoptium as alternative for Java 22 Verified: - Docker build succeeds with maven:3.9-eclipse-temurin-22-alpine and eclipse-temurin:22-jre-alpine - Application starts successfully with Java 22.0.2 Co-Authored-By: Satwik Bebortha <satwik.bebortha@cognition.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR migrates the Springboot-BankApp from Java 17 to Java 22, covering phases 1-5 of the migration plan. The changes update the Java version across build configuration, Docker images, and documentation.
Key changes:
java.versionproperty from 17 to 22, andmaven-compiler-pluginsource/target from 1.8 to 22maven:3.9-eclipse-temurin-22-alpineand runtime stage toeclipse-temurin:22-jre-alpine(note: the originally requestedmaven:3.8.3-openjdk-22andopenjdk:22-alpineimages do not exist on Docker Hub)openjdk-21-jrewith a note explaining thatopenjdk-22-jreis not available in standard Ubuntu repositoriesUpdates Since Last Revision
openjdk-22-jretoopenjdk-21-jresince Java 22 is not available via apt in Ubuntu repos. Added a note recommending Eclipse Temurin/Adoptium as an alternative for Java 22.maven:3.9-eclipse-temurin-22-alpineandeclipse-temurin:22-jre-alpineReview & Testing Checklist for Human
Recommended test plan:
Notes
The Jenkinsfile and GitOps/Jenkinsfile were reviewed and found to be Java version agnostic (they use shared library functions and don't hardcode Java versions), so no changes were required.
Link to Devin run: https://app.devin.ai/sessions/405849c37f9b4d0e9e7c41bbde831cba
Requested by: Satwik Bebortha (@satwik-cog)